package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.ExamDetailList;
import com.example.demo.entity.ExamExamDetail;
import com.example.demo.entity.ExamPaper;
import com.example.demo.entity.ExamUserDetail;
import com.example.demo.service.ExamExamDetailService;
import com.example.demo.mapper.ExamExamDetailMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 18364
* @description 针对表【exam_exam_detail】的数据库操作Service实现
* @createDate 2023-09-18 11:37:22
*/
@Service
public class ExamExamDetailServiceImpl extends ServiceImpl<ExamExamDetailMapper, ExamExamDetail>
    implements ExamExamDetailService{
    @Autowired
    ExamExamDetailMapper examExamDetailMapper;
    @Override
    public List<ExamUserDetail> selectByexamId(Integer id) {
        List<ExamUserDetail> examExamDetail= examExamDetailMapper.selectByexamId(id);
        return examExamDetail;
    }

    @Override
    public ExamExamDetail selectById(Integer id) {
        ExamExamDetail examExamDetail=examExamDetailMapper.selectById(id);
        return examExamDetail;
    }

    @Override
    public ExamExamDetail selectTakeExam(String userId, Integer examId) {
        ExamExamDetail examExamDetail=examExamDetailMapper.selectTakeExam(userId,examId);
        return examExamDetail;
    }


}




